<template>
	<view>
		<view class="page_con">
			<view class="">
				<!-- 斯蒂芬第三方 -->
			</view>
			<view class="grass_header">
				<view v-if="!navShow" class="header">
					<view class="navTab">
						<navigator v-if="community_status == 1" url="/pages/plantGrass/plant_release/index" class="release_btn acea-row row-center-wrapper" hover-class="none"> 
							<text class="iconfont icon-fabu"></text></navigator>
						<view class="acea-row row-center-wrapper">
							<view :class="tabActive == 0 ? 'on' : ''" class="nav-item" :data-index="0" @click="changetab">关注</view>
							<view :class="tabActive == 1 ? 'on' : ''" class="nav-item" :data-index="1" @click="changetab">发现</view>	 
						</view>
						<!-- && community_status == 1 -->
						<navigator v-if="isLogin " :url="'/pages/plantGrass/plant_user/index?id='+userInfo.uid">
							<image class="avatar" :src="userInfo.avatar ? userInfo.avatar : '/static/images/f.png'"></image>
						</navigator>					
					</view>
					<view class="search_count">
						<navigator url="/pages/plantGrass/plant_search/index" hover-class="none" class="search"><text class="iconfont icon-xiazai5"></text>搜索想看的文章</navigator>
						<navigator class="search_topic" url="/pages/plantGrass/plant_topic/index">
							<!-- <image class="topic_icon" src="/static/images/topic_cate.png"></image> -->
							<image class="topic_icon" src="/pages/plantGrass/static/images/topic_cate.png"></image>
							
						</navigator>
					</view>
				</view>
				<view class="longTab" v-show="tabActive === 1">
					<scroll-view scroll-x="true" style="white-space: nowrap; display: flex;" scroll-with-animation class="menu" :scroll-left="tabLeft" show-scrollbar="true" @scroll="scrollTab" >
						<view class="longItem" 
						:style="'width:' + isWidth + 'px'" 
						:data-index="index" 
						:class="index === tabClick ? 'click' : ''" 
						v-for="(item, index) in menuList" 
						:key="index" 
						:id="'id' + index" 
						@click="selectMenu(item, index)">{{ item.cate_name }}</view>
						<view v-if="menuList.length" class="underlineBox" :style="'transform:translateX(' + isLeft + 'px);width:' + isWidth + 'px'">
							<view class="underline bg-color-white"></view>
						</view>
					</scroll-view>
				</view>
			</view>	
			<scroll-view class="main" scroll-y="true" @scroll="scrollHome" @scrolltolower="scrollbottom">				
				<view class="tab-cont" id="main">
					<!-- 关注 -->
					<view v-show="tabActive === 0">
						<view v-if="isLogin && followList.length > 0" class="follow_count">
							<block v-for="(item, index) in followList" :key="index">
								<view class="list_count">
									<view class="title">
										<navigator hover-class="none" :url="'/pages/plantGrass/plant_user/index?id='+item.uid" v-if="item.author" class="author">
											<image class="picture" :src="item.author.avatar || '/static/images/f.png'"></image>
											<text class="name">{{item.author.nickname}}</text>
										</navigator>
										<view class="time">{{item.time}}</view>
									</view>
									<view v-if="item.video" class="product">
										<video style="width:100%;" :id="item.community_id" :src="item.video" controls @play="playVideo"></video>
									</view>
									<view v-else class="product">
										<productConSwiper :imgUrls="item.image"></productConSwiper>
									</view>
									
									<view class="pro_describle">
										<view class="mentioned" v-if="item.relevance && item.relevance.length > 0" @click="openMore(item)">
											<text class="title">查看TA提到的宝贝({{item.relevance.length}})</text>
											<view class="product_more">
												<view class="item">
													<image v-if="indexn<4" v-for="(itemn, indexn) in item.relevance" :key="indexn" :src="(itemn.spu && itemn.spu.image) || itemn.image" class="more_image"></image>
												</view>
												<text class="iconfont icon-gengduo3"></text>
											</view>
										</view>
										<view v-if="!item.show && item.content.length > 110" class="product_info">
											<text class="text">
												{{item.content.substring(0,90)+'...'}}
											</text>
											<text @click.stop="showMore(item)" class="unfold_btn">展开</text>
										</view>
										<view v-else class="product_info">
											<text class="text">
												{{item.content}}
											</text>
										</view>
										<navigator v-if="item.topic" hover-class="none" class="product_cate" :url="'/pages/plantGrass/plant_search_list/index?id='+item.topic.topic_id">
											<view>
												<text class="icon">#</text><text class="text">{{item.topic.topic_name}}</text>
											</view>
										</navigator>
										<view class="foot_bar">
											<!-- #ifdef MP -->
											<button class="time iconfont icon-fenxiang2" open-type="share" hover-class='none' @click="shareFriend(item)"></button>
											<!-- #endif -->
											<!-- #ifndef MP -->
											<button></button>
											<!-- #endif -->
											<view class="item">
												<view class="item_count" @click.stop="likeToggle(item)">
													<text class="iconfont" :class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
													<text>{{item.count_start > 0 ? item.count_start : '点赞'}}</text>
												</view>
												<view class="item_count" @click="openCommon(item,index)">
													<text class="iconfont icon-pinglun"></text>
													<text>{{item.count_reply > 0 ? item.count_reply : '评论'}}</text>
												</view>
											</view>
										</view>
									</view>
								</view>
							</block>						
						</view>
						<view v-if="followList.length == 0 && !focusLoading && isLogin" class="empty">
							<image src="/pages/plantGrass/static/images/no_thing.png"></image>
							<text>暂无内容~</text>
						</view>
						<view v-if="!isLogin" class="empty no_login">
							<image src="/pages/plantGrass/static/images/no_login.png"></image>						
							<view class="title">暂未登录</view>
							<text>登录后可查看关注用户的发布哦~</text>
							<button class="login_btn" @click="authOpen">立即登录</button>
						</view>
					</view>
					<!-- 发现 -->
					<view v-show="tabActive === 1">	
						<!-- 商品 -->
						<view v-if="goods.length" class="goods-wrap" id="goods">
							<view class="goods">
								<WaterfallsFlow :wfList='goods' :isFind="true" @likeToggle="likeToggle"/>
							</view>
						</view>
						<view :hidden="!goodsLoading" class="acea-row row-center-wrapper loadingicon">
							<text class="iconfont icon-jiazai loading"></text>
						</view>
						<view v-if="goods.length == 0 && !goodsLoading" class="empty">
							<image src="/pages/plantGrass/static/images/no_thing.png"></image>
							<text>暂无文章~</text>
						</view>
						
					</view> 
				</view>
			</scroll-view>
		</view>		
		<!-- 他提到的宝贝弹窗 -->
		<mentioned ref="mentioned" @close="closePopup" :list="moreList" :uid="authorUid" :community_id="community_id" ></mentioned>
		<!-- 评论弹窗 -->
		<comment ref="comment" :isShow="showComment" @successFul="commentSucces" @close="close"></comment>		
		<!-- #ifdef MP -->
		<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
		<!-- #endif -->
	</view>	
</template>
<script>
	// +----------------------------------------------------------------------
	// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
	// +----------------------------------------------------------------------
	// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
	// +----------------------------------------------------------------------
	// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
	// +----------------------------------------------------------------------
	// | Author: CRMEB Team <admin@crmeb.com>
	// +----------------------------------------------------------------------
	import WaterfallsFlow from '@/pages/plantGrass/components/plantWaterfallsFlow/WaterfallsFlow.vue'
	import mentioned from '@/pages/plantGrass/components/mentioned.vue';
	import comment from '@/pages/plantGrass/components/comment.vue';
	import { graphicLstApi, getTopicList, graphicStartApi, focusArticleLst } from '@/api/community.js'; 
	import { getconfig } from '@/api/public.js';
	import { getUserInfo } from '@/api/user.js';
	import { mapGetters } from "vuex";
	import { toLogin } from '@/libs/login.js'; 
	// #ifdef MP
	import authorize from '@/components/Authorize';
	// #endif
	import productConSwiper from '@/pages/plantGrass/components/plantConSwiper';
	const app = getApp();
	export default {
		components: {
			// #ifdef MP
			authorize,
			// #endif
			WaterfallsFlow,
			productConSwiper,
			mentioned,
			comment
		},
		data() {
			return {
				systemInfo: app.globalData.statusBarHeight,
				// #ifdef MP
				menuButtonInfo: uni.getMenuButtonBoundingClientRect(),
				// #endif
				tabClick: 0,
				tabLeft: 0,
				isLeft: 0, //导航栏下划线位置
				isWidth: 0, //每个导航栏占位
				childIndex: 0,	
				showComment: false,
				userInfo: {},
				goods: [], // 商铺商品	
				followList: [], //关注列表
				menuList: [],
				moreList: [],
				commList: [], //评论列表
				navShow: false,
				navActive: 0,
				tabActive: 1, // 底部切换
				keyword: '',
				sortPrice: true, // 价格排序
				focusLoading: false,
				goodsLoading: false,
				goodsLoaded: false,
				focusLoaded: false,
				loadTitle: '加载更多',
				isShowAuth: false, //是否隐藏授权
				isAuto: false, //没有授权的不会自动授权
				where: {
					category_id: '',
					page: 1,
					limit: 30
				},
				focusWhere: {
					page: 1,
					limit: 30
				},
				storeScroll: true,
				storeTop: 0,
				storeHeight: 0,
				navHeight: 0,
				avatar: '',
				hederBg: '../static/images/plant_header.png',
				top: 300,
				shareInfo: {},
				actionSheetHidden: true,
				community_status: 0,
				authorUid: 0,
				community_id:'',// 当前关注点击的关注的列表
			}
		},
		created() {
			var that = this;
			// 获取设备宽度
			uni.getSystemInfo({
				success(e) {
					that.isWidth = e.windowWidth / 6;
				}
			});
		},
		computed: {		
			...mapGetters(['isLogin', 'uid']),
		},
		watch: {
				
		},
		onLoad: function(options) {
			
		},
		onShow() {
			this.getCateList();
			this.getGoods();
			this.getConfig()
			let that = this;
			if (that.isLogin) {
				this.getUserInfo();
				this.getFocusArtical();
			} else {
				this.userInfo = {}
			}
		},
		mounted: function() {
			const query = uni.createSelectorQuery().in(this);
			query.select('#main').boundingClientRect(data => {
				this.storeHeight = data.height;
				this.storeTop = data.top;
			}).exec();
		},
		/**
		 * 用户点击右上角分享
		 */
		// #ifdef MP
		onShareAppMessage: function() {
			let that = this;
			that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
			return {
				title: that.shareInfo.title || '',
				imageUrl: that.shareInfo.image[0] || '',
				path: '/pages/plantGrass/plant_detail/index?id=' + that.shareInfo.community_id + '&spid=' + that.uid,
			}
		},
		onShareTimeline: function() {
			let that = this;
			that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
			return {
				title: that.shareInfo.title || '',
				query: {
					id: that.shareInfo.community_id,
					spid: that.uid
				},
				imageUrl: that.shareInfo.image[0] || ''
			}
		},
		// #endif
		methods: {	
			playVideo(e) {
				console.log(e,134)
				var list = this.followList
							var id = e.currentTarget.id
							console.log(id,"id")
						 //循环一下得到的下标  
						            for (let i = 0; i < list.length; i++  ) {  
										// if(list[i].community_id === id)
										if(list[i].video && list[i].community_id != id){
											console.log(i)
											 uni.createVideoContext(list[i].community_id.toString()).pause(); //执行暂停
										}
						                // //排除你播放的那个的下标  
						                // if (i != index) {  
						                //     //注意 这里的videoContext 第一个参数要是一个字符串  
						                //     uni.createVideoContext(i.toString()).pause(); //执行暂停  
						                // }   
						            }  
						},
			changetab(e){
				// tabActive=1;top=300;tabActive=0;top=200;
				var {index} = e.currentTarget.dataset
				if(index === this.tabActive) return 
				console.log(e.currentTarget.dataset)
				// if (that.goodsLoading || that.goodsLoaded) return;
				// if (that.focusLoading || that.focusLoaded) return;
				if(index==0){
					this.tabActive = index
					this.top = 200
					this.focusLoading=false
					this.focusLoaded=false
					this.followList=[]
					this.focusWhere.page =  1;
					this.getFocusArtical()
				}else if(index==1){
					this.goodsLoading=false
					this.goodsLoaded=false
					this.tabActive = index
					this.top = 300
					this.goodsLoading = this.goodsLoaded = false;
					this.where.page = 1;
					this.goods = [];
					this.getGoods()
				}
			},
			scrollbottom(e){
				console.log(e,'触底')
				console.log(this.tabActive)
				if(this.tabActive===0){
					this.getFocusArtical()
				}else if(this.tabActive===1){
					this.getGoods()
				}
			},
			scrollTab(e){
				debugger
				
			},
			//分享信息
			shareFriend(item){
				this.shareInfo = item
			},
			// 授权回调
			onLoadFun() {
				this.isShowAuth = false
				this.getUserInfo();
				this.getFocusArtical();
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e
			},
			// 打开授权			
			authOpen: function() {
				let that = this;
				if (that.isLogin === false) {
					// #ifdef H5 || APP-PLUS
					toLogin();
					// #endif
					// #ifdef MP
					that.$set(that, 'isAuto', true);
					that.$set(that, 'isShowAuth', true);
					// #endif
				}
			},
			getConfig() {
				// 获取配置
				getconfig().then(res => {
					this.community_status = res.data.community_status;	
				}).catch(err => {});
			},			
			/**
			 * 获取个人用户信息
			 */
			getUserInfo: function() {
				let that = this;
				getUserInfo().then(res => {
					that.userInfo = res.data
				});
			},
			/*获取分类列表*/
			getCateList(){
				getTopicList().then(res => {
					this.menuList = res.data;
				})	
			},
			// 点击列表头部
			selectMenu(item, index) {
				this.where.category_id = item.category_id;
				this.goodsLoading = this.goodsLoaded = false;
				this.where.page = 1;
				this.goods = [];
				this.setMenuLeft(index);
			},
			/*导航栏移动位置*/
			setMenuLeft(index) {
				this.childIndex = 0;
				if (this.menuList.length > 6) {
					var tempIndex = index - 2;
					tempIndex = tempIndex <= 0 ? 0 : tempIndex;
					let tabLeft = (index - 2) * this.isWidth; //设置下划线位置
					this.$nextTick(function() {
						this.$set(this, 'tabLeft', tabLeft);
					});
				}
				this.tabClick = index; //设置导航点击了哪一个
				this.isLeft = index * this.isWidth; //设置下划线位置
				this.getGoods();
			},
			showMore(item){
				this.$set(item,'show', true);
			},
			// 获取发现商品
			getGoods: function() {
				console.log('')
				let that = this;
				if (that.goodsLoading || that.goodsLoaded) return;
				
				that.goodsLoading = true;
				that.loadTitle = "";
				graphicLstApi(that.where).then(res => {
					console.log(res,"列表")
					that.goodsLoading = false;
					that.goodsLoaded = res.data.list.length < that.where.limit;
					if(that.where.page == 1 ){
						that.goods = [];
					}
					that.goods.push.apply(that.goods, res.data.list);
					
					that.where.page = that.where.page + 1;
				}).catch(err => {
					that.goodsLoading = false;
					uni.showToast({
						title: err,
						icon: 'none'
					})
				});
			},
			/*获取关注的人的文章列表*/
			getFocusArtical(){
				let that = this;
				if (that.focusLoading || that.focusLoaded) return;
				that.focusLoading = true;
				that.loadTitle = "";
				focusArticleLst(that.focusWhere).then(res => {
					that.focusLoading = false;
					that.focusLoaded = res.data.list.length < that.focusWhere.limit;
					res.data.list.forEach((item)=>{
						item.show = false
					})
					that.followList.push.apply(that.followList, res.data.list);
					that.focusWhere.page = that.focusWhere.page + 1;
				}).catch(err => {
					that.focusLoading = false;
					uni.showToast({
						title: err,
						icon: 'none'
					})
				});
			},
			// 商铺首页滚动 navbar 吸顶
			scrollHome: function(e) {
				this.navShow = e.detail.scrollTop >= this.storeHeight - 10;
			},
			likeToggle(item){
				let status = item.relevance_id ? 0 : 1
				graphicStartApi(item.community_id,{status: status}).then(res => {
					if(item.relevance_id){
						item.count_start--;
						item.count_start = item.count_start == 0 ? 0 : item.count_start
						item.relevance_id = false
					}else{
						item.count_start++;
						item.relevance_id = true
					}
				});
			},
			/*查看提到的宝贝*/
			openMore(item){
				this.community_id = item.community_id
				this.$refs.mentioned.showPopup()
				this.moreList = item.relevance;
				this.authorUid = item.uid
				
			},
			openCommon(item,index){
				this.showComment = true
				this.$refs.comment.getData(item,index);
			},
			commentSucces(index){
				this.followList[index]['count_reply']++
			},
			closePopup(){
				this.$refs.mentioned.closePopup()
			},
			close(){
				this.showComment = false;
			}	
		},
		onReachBottom() {	
			if(this.tabActive == 1){
				this.getGoods();
			}else{
				this.getFocusArtical();
			}
		},
		onPullDownRefresh(){
			
		}
	}
</script>

<style lang="scss">
@import '../static/iconfont/iconfont.css';
page{
	background: #fff;
}
.page_con{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	padding-bottom: 30rpx;
}
.longTab {
	display: flex;
	width: 100%;
	background: #fff;
	border-radius: 16rpx 16rpx 0 0;
	padding: 20rpx 0;
	.longItem {
		height: 50upx;
		display: inline-block;
		line-height: 50upx;
		text-align: center;
		font-size: 30rpx;
		color: #999999;
		max-width: 160rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		overflow-x: scroll;
		overflow-y: hidden;
		/*解决ios上滑动不流畅*/
		-webkit-overflow-scrolling: touch;
		&.click {
			font-weight: bold;
			font-size: 34rpx;
			color: #e93323;
			.underline {
				opacity: 1;
			}
		}
	}
	.underlineBox {
		height: 3px;
		width: 20%;
		display: flex;
		align-content: center;
		justify-content: center;
		.underline {
			width: 60rpx;
			height: 4rpx;
			background-color: #e93323;
		}
	}
}
.tab-cont{
	border-radius: 16rpx 16rpx 0 0;
}
.follow_count{
	/* #ifndef MP */
	padding: 20rpx 20rpx 100rpx;
	/* #endif */
	/* #ifdef MP */
	padding: 20rpx 20rpx 0;
	/* #endif */
	.title{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.author{
		display: flex;
		align-items: center;
		.picture, uni-image{
			width: 78rpx;
			height: 78rpx;
			border-radius: 100%;
		}
		.name{
			margin-left: 20rpx;
			color: #333333;
			font-size: 32rpx;
			font-weight: bold;
		}
	}
	.time{
		color: #999999;
		font-size: 24rpx;
	}
	.product{
		margin-top: 20rpx;
		border-radius: 16rpx;
	}
	.icon-fenxiang2{
		color: #282828;
		font-size: 46rpx;
	}
}
.list_count{
	margin-bottom: 70rpx;
	&:last-child{
		margin-bottom: 0;
	}
}
.pro_describle{
	.mentioned{
		padding: 20rpx 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1rpx solid #F5F5F5;
		.title{
			color: #666666;
			font-size: 26rpx;
		}
	}
	.product_more{
		max-width: 360rpx;
		display: flex;
		align-items: center;
		.more_image{
			width: 58rpx;
			height: 58rpx;
			border-radius: 5rpx;
			border: 1rpx solid #BBBBBB;
			margin-right: 12rpx;
		}
		.iconfont{
			color: #CCCCCC;
			margin-left: 10rpx;
		}
	}
	.product_info{
		line-height: 45rpx;
		margin: 20rpx 0;
		.text{
			font-size: 28rpx;
			color: #282828;
		}
		.unfold_btn{
			margin-left: 30rpx;
			font-size: 30rpx;
			color: #282828;
			font-weight: bold;
		}
	}
	.product_cate{
		margin: 20rpx 0;
		display: inline-block;
		>view{
			display: flex;
			align-items: center;
			background: #FFF3F2;
			border-radius: 30rpx;
			padding: 0 25rpx;
			line-height: 56rpx;
			height: 56rpx;
			color: #E93323;
			.text{
				font-size: 28rpx;
			}
			.icon{
				font-size: 35rpx;
				font-weight: bold;
				margin-right: 10rpx;
			}
		}
			
	}
	.foot_bar{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.item{
			display: flex;
			align-items: center;
			color: #282828;
			&.icon-fenxiang2{
				font-size: 46rpx;
			}
		}
		.item_count{	
			font-size: 26rpx;
			display: flex;
			align-items: center;
			&:first-child{
				margin-right: 30rpx;
			}
			.iconfont{
				font-size: 40rpx;
				margin-right: 5rpx;
			}
			.icon-shoucang1{
				color: #E93323;
			}
		}
	}
}
.grass_header {
	display: flex;
	flex-direction: column;
	background-image: url('');
	background-size: cover;
	background-color: #ffffff;
	width: 100%;
	z-index: 10;
}
.header {
	padding: 0 30rpx 20rpx;
	.navTab{
		position: relative;
		padding: 20rpx 0 40rpx 0;
		.nav-item{
			font-size: 32rpx;
			color: #666666;
			&:first-child{
				margin-right: 70rpx;
			}
			&.on{
				font-size: 38rpx;
				color: #282828;
				font-weight: bold;
			}
		}
		.release_btn{
			width: 58rpx;
			height: 58rpx;
			border-radius: 100%;
			background: linear-gradient(126deg, #E92F2F 0%, #FF6C29 100%);
			color: #fff;
			position: absolute;
			top: 20rpx;
			left: 0;
			.iconfont{
				font-size: 28rpx;
			}				
		}
		.avatar{
			width: 58rpx;
			height: 58rpx;
			border-radius: 100%;
			border: 3rpx solid rgba(0,0,0,.05);
			position: absolute;
			top: 20rpx;
			right: 0;
		}
	}
	.search_count{
		display: flex;
		align-items: center;
		justify-content: space-between;
		.search_topic{
			width: 46rpx;
			height: 46rpx;
			image,.topic_icon,uni-image{
				width: 46rpx;
				height: 46rpx;
			}
		}
	}
	.search {
		display: flex;
		align-items: center;
		min-width: 0;
		height: 58rpx;
		border-radius: 29rpx;
		background-color: #FFFFFF;
		font-weight: 500;
		font-size: 24rpx;
		color: #999999;
		width: 609rpx;
		.iconfont {
			margin-right: 13rpx;
			margin-left: 30rpx;
			font-size: 24rpx;
		}
	}
}
.main_count{
	background-color: #ffffff;
	padding: 30rpx 20rpx;
	.list{
		width: 710rpx;
		height: 280rpx;
		margin-bottom: 30rpx;
		position: relative;
		.picture{
			width: 710rpx;
			height: 280rpx;
			border-radius: 16rpx;
		}
	}
}
.main {
	flex: 1;
	min-height: 60vh;
	height: auto;
}
.nav.fixed {
	position: fixed;
	left: 0;
	width: 100%;
	.nav-cont {
		position: absolute;
		width: 100%;
	}
}
.goods {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 0 20rpx;
	background: #ffffff;
	width: 750rpx;
	/* #ifdef H5 */
	padding-bottom: 60rpx;
	/* #endif */
	.item {
		width: 345rpx;
		border-radius: 16rpx;
		margin-bottom: 20rpx;
		background-color: #FFFFFF;
		overflow: hidden;
		.image {
			width: 345rpx;
			height: 345rpx;
			image {
				display: block;
				width: 100%;
				height: 100%;
			}
		}
		.text {
			padding: 20rpx 20rpx 25rpx;
			.name {			
				font-weight: 500;
				font-size: 30rpx;
				line-height: 1;
				color: #222222;
				display: flex;
				align-items: center;
				.name_text{
					display: inline-block;
					max-width: 400rpx;
				}
			}
			.money-wrap {
				display: flex;
				align-items: center;
				margin-top: 43rpx;
				.money {
					font-weight: bold;
					font-size: 26rpx;
					color: $theme-color;
					text {
						font-size: 34rpx;
						line-height: 1;
					}
				}
				.ticket {
					height: 26rpx;
					padding-right: 9rpx;
					padding-left: 9rpx;
					border: 1rpx solid $theme-color;
					border-radius: 4rpx;
					margin-left: 10rpx;
					font-weight: 500;
					font-size: 20rpx;
					line-height: 24rpx;
					color: $theme-color;
				}
			}
			.score {
				margin-top: 20rpx;
				font-weight: 500;
				font-size: 20rpx;
				line-height: 1;
				color: #737373;
			}
		}
		.foot {
			display: flex;
			justify-content: center;
			align-items: center;
			height: 52rpx;
			background: linear-gradient(to right, #F11B09, #F67A38);
			font-weight: 500;
			font-size: 24rpx;
			color: #FFFFFF;
			.iconfont {
				margin-right: 10rpx;
				font-size: 22rpx;
				line-height: 1;
			}
		}
	}
}	
.empty{
	width: 100%;
	text-align: center;
	margin-top: 200rpx;
	/* #ifdef MP */
	margin-top: 100rpx;
	/* #endif */
	image,uni-image{
		display: inline-block;
		width: 414rpx;
		height: 305rpx;
	}
	.title{
		font-size: 28rpx;
		color: #282828;
		font-weight: bold;
		margin-bottom: 14rpx;
	}
	text{
		display: block;
		color: #999999;
		font-size: 26rpx;
	}
	.login_btn{
		width: 440rpx;
		text-align: center;
		height: 76rpx;
		line-height: 76rpx;
		color: #E93323;
		border: 1rpx solid #E93323;
		border-radius: 40rpx;
		margin: 44rpx auto 0;
		font-size: 32rpx;
	}
}
</style>
